package com.demo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test12 {
    public static void main(String[] args) {
        SimpleDateFormat myFormat=new SimpleDateFormat("HH");
        String format = myFormat.format(new Date());
        System.out.println("format = " + format);
    }
}
